﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Packets
{
    //#define PortalOprOut_PI "int status; int l1descInx; int numThreads; str chksum[NAME_LEN]; struct PortList_PI;"
    [Packet("PortalOprOut_PI")]
    internal class PortalOperationOutputPacket : Packet
    {
        [PacketField("status", 0, DataTypes.Int)]
        public int Status { get; set; }

        [PacketField("l1descInx", 1, DataTypes.Int)]
        public int Handle { get; set; }

        [PacketField("numThreads", 2, DataTypes.Int)]
        public int ThreadsCount { get; set; }

        [PacketField("chksum", 3, DataTypes.String, 1024)]
        public string Checksum { get; set; }

        [PacketField("PortList_PI", 4, DataTypes.Packet)]
        public PortListPacket Port { get; set; }


    }
}
